import request from '@/common/http.js'
export const index = function(data,loading) {
  return request.GET('/worker/admin/index',data,loading)
}
export const openStatus = function(data,loading) {
  return request.POST('/worker/admin/open-status',data,loading)
}
export const updateInfo = function(data,loading) {
  return request.POSTJSON('/worker/admin/update-info',data,loading)
}
export const updateTel = function(data,loading) {
  return request.POST('/worker/admin/update-tel',data,loading)
}
export const addPics = function(data,loading) {
  return request.POSTJSON('/worker/admin/add-pics',data,loading)
}
export const delPics = function(data,loading) {
  return request.POSTJSON('/worker/admin/del-pics',data,loading)
}
export const profitList = function(data,loading) {
  return request.POSTJSON('/worker/admin/profit-list',data,loading)
}
export const cashApply = function(data,loading) {
  return request.POSTJSON('/worker/admin/cash-apply',data,loading)
}
export const goodsList = function(data,loading) {
  return request.POSTJSON('/worker/admin/goods-list',data,loading)
}
export const delGoods = function(data,loading) {
  return request.POSTJSON('/worker/admin/del-goods',data,loading)
}
export const addGoods = function(data,loading) {
  return request.POSTJSON('/worker/admin/add-goods',data,loading)
}
export const goodsCateList = function(data,loading) {
  return request.POSTJSON('/worker/worker-goods-cate-list',data,loading)
}
export const cateList = function(data,loading) {
  return request.POSTJSON('/worker/worker-cate-list',data,loading)
}
export const commentList = function(data,loading) {
  return request.POSTJSON('/worker/admin/comment-list',data,loading)
}
export const orderBind = function(data,loading) {
  return request.POSTJSON('/worker/admin/order-bind',data,loading)
}
export const waitBindOrderList = function(data,loading) {
  return request.POSTJSON('/worker/admin/wait-bind-order-list',data,loading)
}
export const orderList = function(data,loading) {
  return request.POSTJSON('/worker/admin/order-list',data,loading)
}
export const orderFinishpay = function(data,loading) {
  return request.POSTJSON('/worker/admin/order-finish-pay',data,loading)
}
export const orderAddTime = function(data,loading) {
  return request.POSTJSON('/worker/admin/order-add-time',data,loading)
}
export const orderStatus = function(data,loading) {
  return request.POSTJSON('/worker/admin/order-status',data,loading)
}
export const regIndex = function(data,loading) {
  return request.POSTJSON('/worker/index/reg-index',data,loading)
}
export const reg = function(data,loading) {
  return request.POSTJSON('/worker/index/reg',data,loading)
}

export default {
  addPics,
  // 首页数据
  index,
  // 修改状态
  openStatus,
  // 修改用户信息
  updateInfo,
  updateTel,
}
